<%@page import="java.awt.Window.Type"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<jsp:include page="/_layout/_css.jsp"/>
<style type="text/css">
	.form-control, .single-line {
		padding-top:0px;
		padding-bottom: 0px;
	}
</style>
<script type="text/javascript">

</script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="ibox-content">
                    <form action="${ctx}/servlet/BookServlet" method="get" class="form-horizontal" name="form" >
                        <div class="form-group">
                        	<input type="hidden" value="3" name="page">
                            <label class="col-sm-2 control-label">类别选择：</label>
                            <div class="col-sm-5">
                               <select class="input-sm form-control input-s-sm inline" name="typeid">
                               		<option value=0></option>
	                            	<c:forEach items="${type_list}" var="type">
	                                <option value="${type.typeid}">${type.typename}</option>
	                            	</c:forEach>
                           	 	</select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">书名：</label>

                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="bookname">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图片：</label>
								<div class="col-sm-5">
                                <input type="file" name="file"class="btn btn-primary" multiple="multiple"accept="${ctx}/image/*">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">作者：</label>

                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="author">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">出版社：</label>

                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="press">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">出版时间：</label>

                            <div class="col-sm-5">
                                <input type="text" class="form-control" name = "pubtime">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图书描述：</label>
                            <div class="col-sm-5">
                                 <textarea class="form-control" cols="30" rows="4" name = "dis"></textarea>
                                <span class="help-block m-b-none">图书详细描述，关键词</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">库存量：</label>

                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="bookcount" >
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">售价：</label>

                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="price">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit" >添加</button>
                                <button class="btn btn-white" type="button">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
		</div>
	</div>
</body>
<jsp:include page="/_layout/_script.jsp"/>
</html>